<?php
/**
 * Library Of Shared Code (LOSC)
 *
 * LICENSE
 *
 * This source file is subject to the New BSD License that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   LOSC Framework
 * @package    Exception
 * @subpackage HTTP
 * @copyright  Copyright (c) 2008 Robin Skoglund (http://robinsk.net/)
 * @license    http://creativecommons.org/licenses/BSD/  New BSD License
 */

/**
 * Exception used to indicate that the resource requested is no longer available
 * and will not be available again
 *
 * @category   LOSC Framework
 * @package    Exception
 * @subpackage HTTP
 * @copyright  Copyright (c) 2008 Robin Skoglund (http://robinsk.net/)
 * @license    http://creativecommons.org/licenses/BSD/  New BSD License
 */
class Losc_Exception_Http_Gone extends Losc_Exception_Http
{
    const DEFAULT_MSG = 'The requested resource is no longer available at the server.';
    
    /**
     * Creates exception
     *
     * @param string $message        [optional] human-readable error message
     * @param mixed  $substitutions  [optional] scalar value or array of values
     *                               to use for substitutions in exception
     *                               message
     */
    public function __construct($message = self::DEFAULT_MSG,
                                $subtitutions = null)
    {
        parent::__construct($message, $subtitutions, 410);
    }
}
